package com.zhong.gang.pda.ui.main;

import android.content.Context;

import com.zhong.gang.applib.http.callback.Callback;
import com.zhong.gang.pda.api.Api;
import com.zhong.gang.pda.api.HttpUtils;

public class MainPersenter {
    public void getData(Context context,int page,String searchKey,int type,int carStatus, Callback callback){
        HttpUtils.get(Api.getOrderList,context)
                .addParams("current",page+"")
                .addParams("size","10")
                .addParams("searchKey",searchKey)
                .addParams("type",type+"")
                .addParams("carStatus",carStatus+"")
                .build().execute(callback);
    }

    public void getData(Context context,String cardNo,Callback callback){
        HttpUtils.get(Api.findByRfid,context)
                .addParams("rfid",cardNo)
                .build().execute(context,"获取信息",callback);
    }
}
